package com.deng.dubbo.provider;

import com.alibaba.dubbo.config.ProviderConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author DengLibin
 * @Date 19-5-16
 * @Time 上午1:12
 * @Desc
 */
@Configuration
public class Config {
    /**
     * 服务提供者统一配置
     *
     * @return
     */
    @Bean
    public ProviderConfig providerConfig() {
        ProviderConfig providerConfig = new ProviderConfig();
        providerConfig.setThreads(5);
        return providerConfig;
    }
}
